class Solution
{
public:
    int maximumWealth(vector<vector<int>> &accounts)
    {
        int maxWealth = 0;
        for (auto &account : accounts)
        {
            int sumWealth = 0;
            for (int wealth : account)
            {
                sumWealth += wealth;
            }
            if (sumWealth > maxWealth)
            {
                maxWealth = sumWealth;
            }
        }
        return maxWealth;
    }
};